require_relative '../vpc'

comp = Computer.new("test", "testing")
comp.create("test.txt", "blah")
comp.each do |f, c, t|
  puts "#{comp.user} created #{f} on #{t}."
end
comp.delete("test.txt")

# Let's try chaining:
foo = Computer.new("foo", "bar").create("test.txt", "blah2").each { |f, c, t| puts "#{f} {\n#{c}\n} on #{t}" }.delete("test.txt")
# Pretty long winded, right? But, it works!
# Notice how in `comp` we put the user's name?
# `.each` on a variable being assigned can't call `.user`
# because the variable is in the process of being assigned.
# FIXME: `.user` command doesn't work within chained `.each`.
